package com.demo.user;


import com.demo.AppletConstant;
import com.demo.util.Utils;

import java.util.HashMap;
import java.util.Map;


/**
 * 查询用户状态
 *
 */
public class UserStatus {
	public static void main(String[] args) {
		
		//调用接口地址
		String url = "https://open.95516.com/open/access/1.0/user.status";

		String markTime="2021-06-01 10:05:00";
		
		//拼装参数Map
		Map<String, String> params = new HashMap<String, String>(0);
		params.put("appId", AppletConstant.APP_ID);
		params.put("openId", AppletConstant.openId);
		params.put("backendToken", AppletConstant.backendToken);
		params.put("markTime", markTime);

		//发送请求
		String resultStr = Utils.sendPostGson(url, params);
		
		System.out.println("-------查询用户状态:"+resultStr+"---------");
	}
	
}
